﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using PickGold.Data.Hsts.WaterfallTree;

namespace PickGold.Data.Hsts.Database
{
	public class DataContainerFactory : IDataContainerFactory
	{
		public Locator Locator { get; private set; }

		public DataContainerFactory(Locator locator)
		{
			Locator = locator;
		}

		public IDataContainer Create()
		{
			const int MAX_RECORDS = 128 * 1024;

			var data = new TableRecordSet(Locator.KeyComparer, Locator.KeyEqualityComparer);
			data.MAX_RECORDS = MAX_RECORDS;

			return data;
		}
	}
}
